.class public Les/pk0;
.super Ljava/lang/Object;
.source "AppDownloadLaunchResumeListener.java"

# interfaces
.implements Les/yl0;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Les/zn0;IZ)V
    .locals 5
    .annotation build Landroidx/annotation/WorkerThread;
    .end annotation

    .line 4
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object v0

    invoke-virtual {v0}, Les/vj0;->a()V

    .line 5
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object v0

    invoke-virtual {v0, p1}, Les/vj0;->a(Les/zn0;)Les/nj0;

    move-result-object v0

    if-nez v0, :cond_0

    .line 6
    invoke-static {}, Les/cl0;->b()V

    return-void

    .line 7
    :cond_0
    invoke-static {v0}, Les/nj0;->a(Les/nj0;)Lorg/json/JSONObject;

    move-result-object v1

    :try_start_0
    const-string v2, "download_id"

    .line 8
    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result v3

    invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v2, "name"

    .line 9
    invoke-virtual {p1}, Les/zn0;->O0()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v2, "url"

    .line 10
    invoke-virtual {p1}, Les/zn0;->Q0()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v2, "download_time"

    .line 11
    invoke-virtual {p1}, Les/zn0;->x0()J

    move-result-wide v3

    invoke-virtual {v1, v2, v3, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    const-string v2, "download_status"

    .line 12
    invoke-virtual {v1, v2, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string p2, "cur_bytes"

    .line 13
    invoke-virtual {p1}, Les/zn0;->z()J

    move-result-wide v2

    invoke-virtual {v1, p2, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    const-string p2, "total_bytes"

    .line 14
    invoke-virtual {p1}, Les/zn0;->c0()J

    move-result-wide v2

    invoke-virtual {v1, p2, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    const-string p2, "only_wifi"

    .line 15
    invoke-virtual {p1}, Les/zn0;->e1()Z

    move-result v2

    const/4 v3, 0x1

    const/4 v4, 0x0

    if-eqz v2, :cond_1

    const/4 v2, 0x1

    goto :goto_0

    :cond_1
    const/4 v2, 0x0

    :goto_0
    invoke-virtual {v1, p2, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string p2, "chunk_count"

    .line 16
    invoke-virtual {p1}, Les/zn0;->W()I

    move-result v2

    invoke-virtual {v1, p2, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string p2, "launch_resumed"

    if-eqz p3, :cond_2

    goto :goto_1

    :cond_2
    const/4 v3, 0x0

    .line 17
    :goto_1
    invoke-virtual {v1, p2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string p2, "failed_resume_count"

    .line 18
    invoke-virtual {p1}, Les/zn0;->a0()I

    move-result p1

    invoke-virtual {v1, p2, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    :catch_0
    move-exception p1

    .line 19
    invoke-virtual {p1}, Lorg/json/JSONException;->printStackTrace()V

    .line 20
    :goto_2
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p1

    const-string p2, "embeded_ad"

    const-string p3, "download_uncompleted"

    invoke-virtual {p1, p2, p3, v1, v0}, Les/uk0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;Les/nj0;)V

    return-void
.end method

.method public a(Les/zn0;Z)V
    .locals 3

    if-nez p1, :cond_0

    return-void

    .line 1
    :cond_0
    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result v0

    invoke-static {v0}, Les/jo0;->a(I)Les/jo0;

    move-result-object v0

    const/4 v1, 0x0

    const-string v2, "report_download_uncompleted_event"

    .line 2
    invoke-virtual {v0, v2, v1}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result v0

    if-nez v0, :cond_1

    return-void

    .line 3
    :cond_1
    invoke-virtual {p1}, Les/zn0;->d1()I

    move-result v0

    invoke-virtual {p0, p1, v0, p2}, Les/pk0;->a(Les/zn0;IZ)V

    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/zn0;",
            ">;)V"
        }
    .end annotation

    return-void
.end method
